package com.zbf.task.taskweb;

import org.quartz.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.text.SimpleDateFormat;
import java.util.Date;


@DisallowConcurrentExecution
public class HelloJob implements Job{

    private static Logger logger = LoggerFactory.getLogger(HelloJob.class);

    private static SimpleDateFormat simpleDateFormat=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        logger.info("输出的日志===0000===========>"+simpleDateFormat.format(new Date()));
        System.out.println("======01======");
    }
}